package cn.com.zero.sample.trade.provider.mapper;

import cn.com.zero.db.annotation.DataSource;
import cn.com.zero.sample.trade.api.po.OrderPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author liuxh
 * @version 1.0.0
 * @Description 委托mapper
 * @createTime 2022/3/22 14:42
 */
@DataSource("primary")
@Mapper
@Repository
public interface IOrderMapper {

    int create(OrderPO orderPO);

    OrderPO getPaymentById(@Param("id") Long id);

    List<OrderPO> getPaymentList();

}
